package com.suyuan.service.impl;

import com.suyuan.dao.ProPicMapper;
import com.suyuan.entity.ProPic;
import com.suyuan.service.ProPicService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * Created by yang on 2018/5/11.
 */
@Service(value = "proPicService")
@Transactional
public class ProPicServiceImpl implements ProPicService{
    @Resource
    private ProPicMapper proPicMapper;

    public Integer insert(ProPic proPic) throws Exception {
        return proPicMapper.insert(proPic);
    }

    public int delete(Integer id) {
        return proPicMapper.delete(id);
    }
}
